﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.SilverlightMediaFramework.Player;

namespace SMF.HowTo.Sample
{
    public class CustomMarker : Marker
    {
        public event Action<Marker> Selected;

        public string Description { get; set; }

        public override void OnMarkerClicked(object sender)
        {
            base.OnMarkerClicked(sender);

            if (this.Selected != null)
            {
                this.Selected(this);
            }
        }
    }
}
